package it.text;

public class PhoneText {
    public static void main(String[] args) {
        Phone p1 = new Phone();
        Phone p2 = new Phone();

        p1.brand = "小米";
        p1.color = "白的";
        p1.piece = 4999;
        System.out.println(p1.brand);
        System.out.println(p1.color);
        System.out.println(p1.piece);

        p1.callPhone("雷军");
        p1.sendMessage();

        p2.brand = "华为";
        p2.color = "黑色";
        p2.piece = 6999;
        System.out.println(p2.brand);
        System.out.println(p2.color);
        System.out.println(p2.piece);
        p2.callPhone("华为总裁");
        p2.sendMessage();

    }

}
